﻿@model CampWeek5__Book_Project_.Models.IndexVM

@{
    ViewBag.Title = "DisplayAuthors";
}

<h2>DisplayAuthors</h2>

<div class="row">

    List<author>
        @foreach (var b in Model.Authors)
        {
            <br />
            @*code from displaying books*@
            @*<a style="color:black;" href="/Details/BookDetail/@b.ISBN">
                    <img id="fp" src="@b.BookImg" />
                    <br />
                    @b.Title
                </a>*@
            
            
            <img id="fp" src="@b.AuthorImg" />
            <a href="/Details/AuthorDetail/@b.AuthorId"> @b.AuthorName </a>  

            <br />
        }
</div>